/*
 * @Author: wuqingchun
 * @Date: 2024-04-26 16:09:55
 * @Description: 弱符号定义
 * @LastEditors: wuqingchun
 * @LastEditTime: 2024-04-26 16:24:44
 */

#include <stdio.h>

__attribute((weak)) int g_iValue = 200;

__attribute((weak)) void MyPrint()
{
    printf("I am a weak function, value=%d, %s:%d\n", g_iValue, __FILE__, __LINE__);
}